<?php
use yii\widgets\ActiveForm;
?>
<style>
    .info{margin-bottom: 20px; color: #0055cc; font-size: 24px;}
</style>
<div class="ibox-title">
    <h5>添加图片</h5>
</div>
<div class="ibox-content timeline">
    <div class="info"> <?php if(Yii::$app->session->hasFlash('info')){ echo Yii::$app->session->getFlash('info'); } ?></div>
    <?php $form=ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]);?>
        <?=$form->field($model,'title')->textInput()?>

        <?=$form->field($model,'thumb')->fileInput()?>
        <p>
            <input type="submit" class="btn btn-success" value="提交">
        </p>
    <?php ActiveForm::end();?>
</div>
